/* 苹果风格消息提示样式覆盖 - 强制优先级 */
html body #app .el-message,
.el-message {
    min-width: 400px !important;
    max-width: 600px !important;
    padding: 18px 24px !important;
    border: none !important;
    border-radius: 16px !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    margin-top: 20px !important;
    opacity: 0.98 !important;
    transform: translateZ(0) !important;
    z-index: 9999 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
}

html body #app .el-message .el-message__content,
.el-message .el-message__content {
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: white !important;
    letter-spacing: 0.2px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body #app .el-message .el-message__icon,
.el-message .el-message__icon {
    margin-right: 16px !important;
    font-size: 22px !important;
    color: white !important;
}

html body #app .el-message .el-message__closeBtn,
.el-message .el-message__closeBtn {
    display: inline-block !important;
    /* 强制显示关闭按钮 */
    position: absolute !important;
    /* 强制绝对定位 */
    z-index: 1 !important;
    /* 确保在内容之上，如果需要更高可以调整 */
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 20px !important;
    top: 18px !important;
    right: 16px !important;
    cursor: pointer;
    /* 添加手型光标 */
}

html body #app .el-message .el-message__closeBtn:hover,
.el-message .el-message__closeBtn:hover {
    color: white !important;
    transform: scale(1.1);
    /* 添加悬停效果 */
}

/* 根据不同类型修改图标颜色 */
.el-message--success .el-message__icon {
    color: #66d763 !important;
    /* 苹果风格成功绿色 */
}

.el-message--warning .el-message__icon {
    color: #ffb840 !important;
    /* 苹果风格警告黄色 */
}

.el-message--error .el-message__icon {
    color: #ff453a !important;
    /* 苹果风格错误红色 */
}

.el-message--info .el-message__icon {
    color: #32ade6 !important;
    /* 苹果风格信息蓝色 */
}

/* 设置消息动画 */
.el-message-fade-enter-active,
.el-message-fade-leave-active {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.el-message-fade-enter-from,
.el-message-fade-leave-to {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
}

/* 确保毛玻璃效果正常工作的额外样式 */
.el-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

/* 在移动设备上自适应 */
@media (max-width: 768px) {
    .el-message {
        min-width: 90% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
    }
}